<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>\
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{message}}
        <button @click="changeAge(7)">点击我把年龄变成7</button>
    </div>
</body>
</html>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            message: 3,
            xiaodingding:'小丁丁是弟弟'
        },
        methods:{
            changeAge(message){
                this.message = message
            }
        }
    })
</script>